﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrAdvertise.ascx.cs" Inherits="Myweb.Administrator.uc.ctrAdvertise" %>
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="detail box">
<div class="bottom_box_content box">
<div class="head_box_content box">
<div class="ct"><p>Danh sách quảng cáo</p></div>
<div class="search">
<asp:TextBox ID="TextBox1" runat="server" CssClass="input_se input_box"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Tìm kiếm" CssClass="button_box btn_se"/>
</div> 
<div class="clear"></div>
</div><!--head_box_content box-->



    
<asp:GridView ID="GridView1" runat="server" CellPadding="4" 
DataKeyNames="id" 
EmptyDataText="không có dữ liệu" 
AllowPaging="True"
PageSize="5"
AutoGenerateColumns="False" 
Width="100%" onpageindexchanging="GridView1_PageIndexChanging" 
onrowcancelingedit="GridView1_RowCancelingEdit" 
onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" 
onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating"
EnableTheming="True" ShowHeaderWhenEmpty="True" >
<RowStyle BackColor="#F3F3F3"></RowStyle>
<AlternatingRowStyle BackColor="white"></AlternatingRowStyle>
<EditRowStyle BackColor="#D9EEA2"></EditRowStyle>
<SelectedRowStyle BackColor="#D9EEA2"></SelectedRowStyle>
<Columns>
<asp:TemplateField HeaderText="STT">
<ItemTemplate>
<%#Container.DataItemIndex+1 %>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="10px" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

<asp:TemplateField runat="server" HeaderText="Tên quảng cáo">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("Name") %>' ID="lblName"></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="200px" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>

<asp:TemplateField  HeaderText="Hình ảnh">
<ItemTemplate>
    <asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("Image")%>' Height="100px" Width="100px"/>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
</asp:TemplateField>
           

<asp:CommandField ShowDeleteButton="True" DeleteText="Xóa">
<ItemStyle Width="50px" HorizontalAlign="Left">  
</ItemStyle>
</asp:CommandField>           
           
<asp:TemplateField>
<HeaderTemplate>
<asp:CheckBox ID="cbAll" runat="server" OnCheckedChanged="ChkAll" AutoPostBack="True"/>
</HeaderTemplate>
<ItemTemplate >
<asp:CheckBox ID="cbitem" runat="server"/>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle"></HeaderStyle>
<ItemStyle Width="20px" HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
</Columns> 
<PagerStyle HorizontalAlign="Left"></PagerStyle>
</asp:GridView>


</div><!--end bottom_box_content box-->
<div class="mtnv">
    <asp:LinkButton ID="LinkButton1" runat="server" CssClass="btn_mtd">Xóa</asp:LinkButton>
</div><!--end mtnv-->
</div><!--end detail box-->
</div>
<div id="hr_"></div>

</ContentTemplate>
</asp:UpdatePanel>